const fs = require('fs');
console.log(1)
/* fs.readFile('./test1.txt',{flag:'r'},(err,data)=>{
    if(!err){
        console.log(data);
        console.log(data.toString());
        console.log(2)
    }else{
        console.log(err);
    }
}) */
// 同步文件读取
let result = fs.readFileSync('./test1.txt');
console.log(result);
console.log(3);
process.nextTick(()=>{
    console.log(4);
})